#define _CRT_SECURE_NO_WARNINGS 1
#include "SegTree.h"

int main() {
	vector<int> nums = { 5, 3, 7, 2, 12, 1, 6, 4, 8, 15 };
	SegTree<int> t(nums, 0, nums.size() - 1);
	t.preorder();
	t.modify(9, 18);
	t.preorder();


	return 0;
}